fhonload=function(){
	let id=getfhid();
	let emid=document.getElementById('emid');
	let input1=document.getElementById('onein');
	let input2=document.getElementById('towin');
	let input3=document.getElementById('thirdin');
	let input4=document.getElementById('position1');
	let input5=document.getElementById('position2');
	let input6=document.getElementById('position3');
	let input7=document.getElementById('name');
	let input8=document.getElementById('sex');
	let input9=document.getElementById('yx');
	let input10=document.getElementById('dh');
	let input11=document.getElementById('sj');
	let input12=document.getElementById('QQ');
	let input13=document.getElementById('place');
	let input14=document.getElementById('bplace');
	let input15=document.getElementById('yb');
	let input16=document.getElementById('sfz');
	let input17=document.getElementById('shbzhm');
	let input18=document.getElementById('sr').querySelector('input');
	if(input18==null)
	input18=document.getElementById('sr');
	let input19=document.getElementById('nl');
	let input20=document.getElementById('gj');
	let input21=document.getElementById('mz');
	let input22=document.getElementById('zjxy');
	let input23=document.getElementById('zzmm');
	let input24=document.getElementById('xl');
	let input25=document.getElementById('xlzy');
	let input26=document.getElementById('tc');
	let input27=document.getElementById('ah');
	let input28=document.getElementById('xzbz');
	let input29=document.getElementById('khh');
	let input30=document.getElementById('yhkzh');
	let input31=document.getElementById('grll');
	let input32=document.getElementById('homegx');
	let input33=document.getElementById('bz');
	let input34=document.getElementById('djrq').querySelector('input');
	if(input34==null)
	input34=document.getElementById('djrq');
	let input35=document.getElementById('djr');
	let input36=document.getElementById('ygtx');
	let xml;
	if (window.XMLHttpRequest)
	{
	    //  IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
	    xml=new XMLHttpRequest();
	}
	else
	{
	    // IE6, IE5 浏览器执行代码
	    xml=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xml.onreadystatechange=function(){
		if(xml.readyState==4&&xml.status==200){
			if(xml.responseText!="null"&&xml.responseText!="")
			{
				let t=JSON.parse(xml.responseText).data;
				emid.innerText=t.eID;
				input1.value=t.e_L1InstID;
				input2.value=t.e_L2InstID;
				input3.value=t.e_L3InstID;
				input4.value=t.ePositionCategory;
				input5.value=t.ePositionName;
				input6.value=t.eJobTitle;
				input7.value=t.eName;
				input8.value=t.eGender;
				input9.value=t.eEmail;
				input10.value=t.eFixedPhone;
				input11.value=t.eCellPhone;
				input12.value=t.eQQ;
				input13.value=t.eAddress;
				input14.value=t.eBirthplace;
				input15.value=t.ePostcode;
				input16.value=t.eIDcard;
				input17.value=t.eSSC;
				input18.value=t.eBirthday;
				input19.value=t.eAge;
				input20.value=t.eCountry;
				input21.value=t.eEthnic;
				input22.value=t.eReligion;
				input23.value=t.ePolitical;
				input24.value=t.eEducation;
				input25.value=t.eMajor;
				input26.value=t.eSpecically;
				input27.value=t.eHobby;
				input28.value=t.eSalary;
				input29.value=t.eBankName;
				input30.value=t.eBankAccount;
				input31.innerText=t.eResume;
				input32.innerText=t.eFamily;
				input33.value=t.eRemarks;
				input34.value=t.eRecodDate;
				input35.value=t.eRecoders;
				input36.src=t.eAvatar;
			}

		}
	}
	xml.open("post","/employee/findByeID",true);
	xml.setRequestHeader('content-type','application/x-www-form-urlencoded');
	xml.send('eID='+id);
}
fuheload2=function(){
		let id=getfhid();
	let input1=document.getElementById('ycipnut1');
	let input2=document.getElementById('ycipnut2');
	let input3=document.getElementById('ycipnut3');
	let input4=document.getElementById('ycipnut4');
	let input5=document.getElementById('ycipnut5');
	let input6=document.getElementById('ycipnut6');
	
	let xml;
	if (window.XMLHttpRequest)
	{
	    //  IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
	    xml=new XMLHttpRequest();
	}
	else
	{
	    // IE6, IE5 浏览器执行代码
	    xml=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xml.onreadystatechange=function(){
		if(xml.readyState==4&&xml.status==200){
			if(xml.responseText!="null"&&xml.responseText!="")
			{
				let t=JSON.parse(xml.responseText);
				emid.innerText=t.eID;
				input1.value=t.e_L1InstID;
				input2.value=t.e_L2InstID;
				input3.value=t.e_L3InstID;
				input4.value=t.ePositionCategory;
				input5.value=t.ePositionName;
				input6.value=t.eJobTitle;
			}

		}
	}
	xml.open("post","/employee/findByeID",true);
	xml.setRequestHeader('content-type','application/x-www-form-urlencoded');
	xml.send('eID='+id);
}
bohui=function(){
	let id=getfhid();
	let xml;
	if (window.XMLHttpRequest)
	{
	    //  IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
	    xml=new XMLHttpRequest();
	}
	else
	{
	    // IE6, IE5 浏览器执行代码
	    xml=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xml.onreadystatechange=function(){
		if(xml.readyState==4&&xml.status==200){
			 let t=JSON.parse(xml.responseText);
			 if(t.status==200){
				 alert("成功");
				 let mya=document.createElement('a');
				 mya.href="employeereview.html";
				 mya.click();
			 }
		}
	}
	xml.open("post","/employee/delete",true);
	xml.setRequestHeader('content-type','application/x-www-form-urlencoded');
	xml.send('eID='+id+'&eStatus='+3);
}
let getfhid=function(){
	let id=decodeURI(window.location .href);
    let aa=id.indexOf('=');
    if (aa>-1){
    id=id.substring(aa+1);
    }
    return id;
}